.class Lcom/waiqin365/base/login/aj;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/LoginHomeActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/LoginHomeActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 8

    const/4 v2, 0x0

    const/4 v7, 0x1

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    :try_start_0
    iget v1, p1, Landroid/os/Message;->what:I

    sparse-switch v1, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    move-object v0, v1

    check-cast v0, Lcom/waiqin365/base/login/b/a/ao;

    move-object v5, v0

    invoke-virtual {v5}, Lcom/waiqin365/base/login/b/a/ao;->b()Z

    move-result v1

    if-eqz v1, :cond_8

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->b()Lcom/fiberhome/gaea/client/c/b;

    move-result-object v1

    iget-object v3, v5, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v3, v3, Lcom/waiqin365/base/login/c/h;->h:Ljava/lang/String;

    iput-object v3, v1, Lcom/fiberhome/gaea/client/c/b;->r:Ljava/lang/String;

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->b()Lcom/fiberhome/gaea/client/c/b;

    move-result-object v1

    iget-object v3, v5, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v3, v3, Lcom/waiqin365/base/login/c/h;->i:Ljava/lang/String;

    iput-object v3, v1, Lcom/fiberhome/gaea/client/c/b;->s:Ljava/lang/String;

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->b()Lcom/fiberhome/gaea/client/c/b;

    move-result-object v1

    iget-object v3, v5, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v3, v3, Lcom/waiqin365/base/login/c/h;->d:Ljava/lang/String;

    iput-object v3, v1, Lcom/fiberhome/gaea/client/c/b;->t:Ljava/lang/String;

    const-string/jumbo v1, "0"

    iget-object v3, v5, Lcom/waiqin365/base/login/b/a/ao;->c:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->o(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/compons/view/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/compons/view/a;->dismiss()V

    iget-object v1, v5, Lcom/waiqin365/base/login/b/a/ao;->d:Ljava/lang/String;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->n(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v1

    iget-object v2, v5, Lcom/waiqin365/base/login/b/a/ao;->e:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/waiqin365/compons/view/c;->a(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->n(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/compons/view/c;->show()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    :cond_1
    :try_start_1
    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->l(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v1

    iget-object v2, v5, Lcom/waiqin365/base/login/b/a/ao;->e:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/waiqin365/compons/view/c;->a(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->l(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/compons/view/c;->show()V

    goto :goto_0

    :cond_2
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const-string/jumbo v3, "company"

    iget-object v4, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v4}, Lcom/waiqin365/base/login/LoginHomeActivity;->p(Lcom/waiqin365/base/login/LoginHomeActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    new-instance v3, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v4, "_loginCompany"

    iget-object v6, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v6}, Lcom/waiqin365/base/login/LoginHomeActivity;->i(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/AccountEditTextNoVerify;

    move-result-object v6

    invoke-virtual {v6}, Lcom/waiqin365/base/view/AccountEditTextNoVerify;->a()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v3, v4, v6}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v3, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v4, "_loginAccount"

    iget-object v6, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v6}, Lcom/waiqin365/base/login/LoginHomeActivity;->j(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/AccountEditTextNoVerify;

    move-result-object v6

    invoke-virtual {v6}, Lcom/waiqin365/base/view/AccountEditTextNoVerify;->a()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v3, v4, v6}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v3, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v4, "_loginPassword"

    iget-object v6, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v6}, Lcom/waiqin365/base/login/LoginHomeActivity;->k(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PasswordEditText_hasForget;

    move-result-object v6

    invoke-virtual {v6}, Lcom/waiqin365/base/view/PasswordEditText_hasForget;->a()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v3, v4, v6}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v3, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v4, "_loginType"

    const-string/jumbo v6, "1"

    invoke-direct {v3, v4, v6}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v3, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v3, v1}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/util/ArrayList;)V

    :cond_3
    const-string/jumbo v3, "phone"

    iget-object v4, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v4}, Lcom/waiqin365/base/login/LoginHomeActivity;->p(Lcom/waiqin365/base/login/LoginHomeActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    new-instance v3, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v4, "_loginCompany"

    const-string/jumbo v6, ""

    invoke-direct {v3, v4, v6}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v3, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v4, "_loginAccount"

    iget-object v6, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v6}, Lcom/waiqin365/base/login/LoginHomeActivity;->b(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PhoneNumEditText;

    move-result-object v6

    invoke-virtual {v6}, Lcom/waiqin365/base/view/PhoneNumEditText;->a()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v3, v4, v6}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v3, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v4, "_loginPassword"

    iget-object v6, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v6}, Lcom/waiqin365/base/login/LoginHomeActivity;->d(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PasswordEditText_hasForget;

    move-result-object v6

    invoke-virtual {v6}, Lcom/waiqin365/base/view/PasswordEditText_hasForget;->a()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v3, v4, v6}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v3, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v4, "_loginType"

    const-string/jumbo v6, "2"

    invoke-direct {v3, v4, v6}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v3, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v3, v1}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/util/ArrayList;)V

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1, v5}, Lcom/waiqin365/base/login/LoginHomeActivity;->a(Lcom/waiqin365/base/login/LoginHomeActivity;Lcom/waiqin365/base/login/b/a/ao;)Lcom/waiqin365/base/login/b/a/ao;

    iget-object v1, v5, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v1, v1, Lcom/waiqin365/base/login/c/h;->b:Ljava/lang/String;

    if-eqz v1, :cond_5

    iget-object v1, v5, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v1, v1, Lcom/waiqin365/base/login/c/h;->b:Ljava/lang/String;

    const-string/jumbo v3, "http"

    invoke-virtual {v1, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_5

    move v6, v7

    :goto_1
    iget-object v1, v5, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v1, v1, Lcom/waiqin365/base/login/c/h;->f:Ljava/lang/String;

    if-eqz v1, :cond_6

    iget-object v1, v5, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v1, v1, Lcom/waiqin365/base/login/c/h;->f:Ljava/lang/String;

    const-string/jumbo v3, "http"

    invoke-virtual {v1, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    :goto_2
    if-nez v6, :cond_7

    if-nez v7, :cond_7

    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->o(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/compons/view/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/compons/view/a;->dismiss()V

    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->q(Lcom/waiqin365/base/login/LoginHomeActivity;)V

    goto/16 :goto_0

    :cond_5
    move v6, v2

    goto :goto_1

    :cond_6
    move v7, v2

    goto :goto_2

    :cond_7
    invoke-static {}, Lcom/waiqin365/compons/b/b;->a()Lcom/waiqin365/compons/b/b;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v2}, Lcom/waiqin365/base/login/LoginHomeActivity;->r(Lcom/waiqin365/base/login/LoginHomeActivity;)Landroid/os/Handler;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    iget-object v4, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v4}, Lcom/waiqin365/base/login/LoginHomeActivity;->o(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/compons/view/a;

    move-result-object v4

    iget-object v5, v5, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    invoke-virtual/range {v1 .. v7}, Lcom/waiqin365/compons/b/b;->a(Landroid/os/Handler;Landroid/content/Context;Lcom/waiqin365/compons/view/a;Lcom/waiqin365/base/login/c/h;ZZ)Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->q(Lcom/waiqin365/base/login/LoginHomeActivity;)V

    goto/16 :goto_0

    :cond_8
    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->o(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/compons/view/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/compons/view/a;->dismiss()V

    iget v1, v5, Lcom/waiqin365/base/login/b/a/ao;->b:I

    if-lez v1, :cond_9

    iget-object v2, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v2}, Lcom/waiqin365/base/login/LoginHomeActivity;->l(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v2

    invoke-static {v1}, Lcom/waiqin365/base/login/d/g;->a(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Lcom/waiqin365/compons/view/c;->a(Ljava/lang/String;)V

    :goto_3
    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->l(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/compons/view/c;->show()V

    goto/16 :goto_0

    :cond_9
    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->l(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    const v3, 0x7f08013b

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/login/LoginHomeActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/compons/view/c;->a(Ljava/lang/String;)V

    goto :goto_3

    :sswitch_1
    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->q(Lcom/waiqin365/base/login/LoginHomeActivity;)V

    goto/16 :goto_0

    :sswitch_2
    iget-object v1, p0, Lcom/waiqin365/base/login/aj;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->f(Lcom/waiqin365/base/login/LoginHomeActivity;)Landroid/widget/Button;

    move-result-object v1

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setEnabled(Z)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0

    :sswitch_data_0
    .sparse-switch
        0x1 -> :sswitch_0
        0x2710 -> :sswitch_1
        0x2715 -> :sswitch_2
    .end sparse-switch
.end method
